<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>商品列表</title>
  <!-- jquery -->
  <script type="text/javascript" th:src="@{/js/jquery.min.js}"></script>
  <!-- bootstrap -->
  <link rel="stylesheet" type="text/css" th:href="@{/bootstrap/css/bootstrap.min.css}"/>
  <script type="text/javascript" th:src="@{/bootstrap/js/bootstrap.min.js}"></script>
  <!-- layer -->
  <script type="text/javascript" th:src="@{/layer/layer.js}"></script>
  <!-- common.js -->
  <script type="text/javascript" th:src="@{/js/common.js}"></script>
</head>
<body>
<div class="panel panel-default">
     
  <div class="panel-heading">商品列表</div>
     
  <table class="table">
    <tr>
      <td>商品标题</td>
      <td>商品图片</td>
      <td>商品价格</td>
    </tr>

    <tr th:each="goods,goodsStat : ${goodsList}">
      <td th:text="${goods.goodsTitle}"></td>
      <td><img th:src="@{${goods.goodsImg}}" height="100px" width="200px" alt=""/></td>
      <td th:text="${goods.goodsPrice}"></td>
      <td>
        <a href="javascript:;" th:layuimini-content-href="'goodsDetail.htm?goodsId='+${goods.id}" data-title="商品详情">详情</a>
      </td>
    </tr>

  </table>
</div>
</body>
</html>
